import { Router } from 'express'
import UsersController from './Users'
import FileController from './File'
import ConfigController from './Config'
import CommonController from './Common'
import XueshengController from './Xuesheng'
import GonggaoxinxiController from './Gonggaoxinxi'
import ZhiyuanhuodongController from './Zhiyuanhuodong'
import HuodongbaomingController from './Huodongbaoming'
import QingjiaxinxiController from './Qingjiaxinxi'
import HesuandakaController from './Hesuandaka'
import FanxiaoshenpiController from './Fanxiaoshenpi'
import JiankangxinxiController from './Jiankangxinxi'
import ChurudengjiController from './Churudengji'
import NewsController from './News'
import SystemintroController from './Systemintro'
import MessagesController from './Messages'

export default ({ config, db }) => {
	let api = Router()

	api.use('/users', UsersController({ config, db }))

	api.use('/file', FileController({ config, db }))

	api.use('/config', ConfigController({ config, db }))

	api.use('/', CommonController({ config, db }))

	api.use('/xuesheng', XueshengController({ config, db }))

	api.use('/gonggaoxinxi', GonggaoxinxiController({ config, db }))

	api.use('/zhiyuanhuodong', ZhiyuanhuodongController({ config, db }))

	api.use('/huodongbaoming', HuodongbaomingController({ config, db }))

	api.use('/qingjiaxinxi', QingjiaxinxiController({ config, db }))

	api.use('/hesuandaka', HesuandakaController({ config, db }))

	api.use('/fanxiaoshenpi', FanxiaoshenpiController({ config, db }))

	api.use('/jiankangxinxi', JiankangxinxiController({ config, db }))

	api.use('/churudengji', ChurudengjiController({ config, db }))

	api.use('/news', NewsController({ config, db }))

	api.use('/systemintro', SystemintroController({ config, db }))

	api.use('/messages', MessagesController({ config, db }))

	return api
}
